package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.LRepNewDto;
import com.woniuxy.company5.entity.RepNew;
import com.woniuxy.company5.mapper.RepNewMapper;
import com.woniuxy.company5.service.RepNewService;
import com.woniuxy.company5.vo.LRepNewVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RepNewServiceImpl implements RepNewService {
    @Resource
    private RepNewMapper repNewMapper;


    @Override
    public List<LRepNewVo> selectByLike(LRepNewDto repNewDto) {

            return repNewMapper.selectByLike(repNewDto);
    }

    @Override
    public List<RepNew> selAllRepNew() {
        return repNewMapper.selAllRepNew();
    }

    @Override
    public RepNew selByNum(String num) {
        return repNewMapper.selByNum(num);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return repNewMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByNum(String num) {
        return repNewMapper.updateByNum(num);
    }

    @Override
    public int insert(RepNew record) {
        return repNewMapper.insert(record);
    }

    @Override
    public int insertSelective(RepNew record) {
        return repNewMapper.insertSelective(record);
    }

    @Override
    public RepNew selectByPrimaryKey(Long id) {
        return repNewMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(RepNew record) {
        return repNewMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RepNew record) {
        return repNewMapper.updateByPrimaryKey(record);
    }
}
